Move PaymentSheet String utils out of StripePaymentsUI#5970
Move PaymentSheet String utils out of StripePaymentsUI#5970davidme-stripe wants to merge 2 commits intodavidme/move-ps-imagesfrom
Conversation
1715c42 to
391cc83
Compare
1 build increased size, 2 builds decreased size, 5 builds had no size change
StripeSize 1.0 (1)
|
| Item | Install Size Change |
|---|---|
| Other | ⬆️ 1.8 kB |
| Packed Asset | ⬇️ 0 B |
| 🗑 StripePaymentsUI.STPStringUtils.sanitizedExpirationDateFromOCRStr... | ⬇️ -896 B |
| 🗑 StripePaymentsUI.STPStringUtils.stringMayContainExpirationDate | ⬇️ -592 B |
| Other | ⬇️ -2.2 kB |
StripePaymentsSize 1.0 (1)
com.stripe.StripePaymentsSize
No changes to report
StripePaymentsUISize 1.0 (1)
com.stripe.StripePaymentsUISize
⚖️ Compare build
⏱️ Analyze build performance
Total install size change: ⬇️ 1.9 kB (-0.03%)
Total download size change: ⬇️ 2.5 kB (-0.13%)
Largest size changes
| Item | Install Size Change |
|---|---|
| Other | ⬆️ 1.8 kB |
| Packed Asset | ⬇️ 0 B |
| 🗑 StripePaymentsUI.STPStringUtils.sanitizedExpirationDateFromOCRStr... | ⬇️ -716 B |
| 🗑 StripePaymentsUI.STPStringUtils.stringMayContainExpirationDate | ⬇️ -580 B |
| Other | ⬇️ -2.3 kB |
StripePaymentSheetSize 1.0 (1)
com.stripe.StripePaymentSheetSize
⚖️ Compare build
⏱️ Analyze build performance
Total install size change: ⬆️ 110.9 kB (0.9%)
Total download size change: ⬆️ 82.2 kB (1.92%)
Largest size changes
| Item | Install Size Change |
|---|---|
| Packed Asset | ⬆️ 0 B |
| Other | ⬆️ 9.8 kB |
| 🗑 StripePaymentSheet.STPStringUtils | ⬇️ -8.6 kB |
| 📝 icon-card-unionpay.svg (Vector) | ⬆️ 5.5 kB |
| 📝 StripePaymentSheet.PaymentSheetStringUtils.applyLinksToString(tem... | ⬆️ 3.1 kB |
StripeIdentitySize 1.0 (1)
com.stripe.StripeIdentitySize
No changes to report
StripeApplePaySize 1.0 (1)
com.stripe.StripeApplePaySize
No changes to report
StripeFinancialConnectionsSize 1.0 (1)
com.stripe.StripeFinancialConnectionsSize
No changes to report
StripeConnectSize 1.0 (1)
com.stripe.StripeConnectSize
No changes to report
🛸 Powered by Emerge Tools
Comment trigger: Size diff threshold of 100.00kB exceeded
|
🚨 New dead code detected in this PR: STPStringUtils.swift:207 warning: Unused property 'expirationDateStringRegex'
STPStringUtils.swift:214 warning: Unused function 'expirationDateString(from:)'
STPStringUtils.swift:244 warning: Unused property 'stringMayContainExpirationDateRegex'
STPStringUtils.swift:253 warning: Unused function 'stringMayContainExpirationDate(_:)'
STPStringUtils.swift:262 warning: Unused property 'slashFormattedExpirationDateRegex'
STPStringUtils.swift:269 warning: Unused function 'sanitizedExpirationDateFromOCRString(_:)'Please remove the dead code before merging. If this is intentional, you can bypass this check by adding the label ℹ️ If this comment appears to be left in error, double check that the flagged code is actually used and/or make sure your branch is up-to-date with [find-dead-code] |
Copies card brand and other payment-related images to StripePaymentSheet and creates PaymentSheetImageLibrary to replace STPImageLibrary usage.
Moves string utility functions from StripePaymentsUI to StripePaymentSheet.
391cc83 to
4ec2b39
Compare



Summary
Motivation
Testing
Changelog